<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="<%=path %>/images/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
            function closeOpen()
		    {
		       window.returnValue=false;
		       window.close();
		    }
		    function check1()
		    {
		     
		        if(document.form1.loginpw.value!="")
		        {
		           
		        
		        if(document.form1.loginpw.value!=document.form1.loginpw1.value)
		        {
		            alert("两次密码不一致");
		            return false;
		        }
				}
		        document.form1.submit();
		    }
        </script>
</head>
<body>

<!--main start -->

<div id="main">
  <jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
  
  <!--left panel start -->
  <div id="left">
    <jsp:include flush="true" page="/qiantai/inc/incLeft.jsp"></jsp:include>
  </div>
  <!--left panel end --> 
  <!--right panel start -->
  <div id="right"> 
    <!--rightBotMain start -->
    
    <div class="contactMain"> 
      
      <!--best start --> 
      <!--rightBot start --> 
      <!--rightBot end --> 
      <!--best start -->
      <div id="best1">
        <h2><span>资料修改 </span></h2>
        <form action="<%=path %>/stu?type=stuEditsave" name="form1" method="post">
 				<c:forEach items="${requestScope.stuList}" var="stu">
         <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
            <tr>
              <th height="40" colspan="2" bgcolor="#FFFFFF" class="f12b-red" style="font-size: 11px;"> 资料修改 </th>
            </tr>
            <tr>
              <td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;"> 密 码： </td>
              <td bgcolor="#FFFFFF">&nbsp;
                <input type="password" name="loginpw"/>不修改密码请留空</td>
            </tr>
            <tr>
              <td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;"> 密码确认： </td>
              <td bgcolor="#FFFFFF">&nbsp;
                <input type="password" name="loginpw1"/></td>
            </tr>
            <tr>
              <td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;"> 姓名： </td>
              <td bgcolor="#FFFFFF">&nbsp;${stu.name1} <input  type="hidden" name="name1" size="20" value="${stu.name1}"/></td>
            </tr>
            <tr>
              <td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;"> 性别： </td>
              <td bgcolor="#FFFFFF">&nbsp; <input type="radio" name="sex" value="男" checked="checked"/>
                男
                &nbsp;&nbsp;
                <input type="radio" name="sex" value="女"/>
                女 </td>
            </tr>
            <tr>
              <td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;"> 年龄： </td>
              <td bgcolor="#FFFFFF">&nbsp; <input type="text" value="${stu.age}" name="age" size="20" onpropertychange="onchange1(this.value)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/></td>
            </tr>
            <tr>
              <td height="30" align="right" bgcolor="#F9F9F9">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;
                <input type="button" value="保存" onclick="check1();"/>
                <input type="button" value="取消" onclick="closeOpen()"/>
                <input type="hidden" value="${stu.id}" name="id" /></td>
            </tr>
          </table>
      				</c:forEach>
  </form>
        <br class="spacer" />
      </div>
      <!--best end --> 
    </div>
    <!--rightBotMain end --> 
    <!--last panel start --> 
    <!--last panel end --> 
    <br class="spacer" />
  </div>
  
  <!--right panel end --> 
  <br class="spacer" />
</div>
<!--main end --> 
<!--footerMain start -->

<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>

<!--footerMain end -->
</body>
</html>
